<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta content="telephone=no" name="format-detection" />
    <!-- 留作将来统一添加 -->
    <TEMPLATE>${TEMPLATE}</TEMPLATE>
    <title>模板html</title>
    <link rel="stylesheet" type="text/css" href="../../css/index.css">
    <link rel="stylesheet" type="text/css" href="../../css/data-flex.min.css">
    <style type="text/css">
        html {
            background-color: rgba(0, 0, 0, 0);
        }

        body {
            margin: 0;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .vueApp {
            height: 100vh;
        }

        .alert-submit {
            position: relative;
            width: 270px;
            height: auto;
            overflow: visible;
            background-color: #fff;
            border-radius: 10px;
        }

        .alert-submit .img-laugh {
            position: absolute;
            top: -47px;
            left: 101px;
            width: 105px;
            height: 105px;
        }

        .alert-submit .text-great {
            margin-top: 38px;
            font-size: 16px;
            font-weight: 500;
            color: #3F4046;
            text-align: center;
        }

        .alert-submit .text-tips {
            margin-top: 15px;
            font-size: 14px;
            font-weight: 400;
            color: #3F4046;
            text-align: center;
        }

        .alert-submit .flexbox-btns {
            height: 50px;
            margin-top: 15px;
            border-top: 1px solid #E2E4E9;
        }

        .alert-submit .btn {
            width: 50%;
            min-width: 50%;
            height: 100%;
        }

        .alert-submit .btn-cancel {
            font-size: 18px;
            font-weight: 400;
            color: #7F818D;
            border-right: 1px solid #E2E4E9;
        }

        .alert-submit .btn-confirm {
            font-size: 18px;
            font-weight: 500;
            color: #5AC2FF;
        }
    </style>
</head>

<body>
    <div class="vueApp" v-cloak data-flex="cross:center main:center">
        <div class="alert-submit">
            <img src="../../image/ui/laugh.png" alt="" class="img-laugh">
            <div class="text-great">太棒啦!</div>
            <div class="text-tips">习题已全部答完，是否提交？</div>
            <div class="flexbox-btns" data-flex>
                <div class="btn btn-cancel" onclick="api.closeFrame()" data-flex="cross:center main:center">暂不提交</div>
                <div class="btn btn-confirm" onclick="funSubmit()" data-flex="cross:center main:center">提交</div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/service/service-tool.js"></script>
<script type="text/javascript" src="../../script/service/service-app.js"></script>
<script type="text/javascript" src="../../script/service/service-user.js"></script>
<script type="text/javascript" src="../../script/service/service-logic.js"></script>
<script type="text/javascript" src="../../script/jquery.min.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript">
    // html 的引号一律为双引号(""),js 为单引号('')
    var USER, $S, vm, pageParam;
    apiready = function () {
        $S = SERVICE();
        USER = USER();
        console.log(JSON.stringify(api.pageParam) + '=====pageParam');
        pageParam = api.pageParam;
        fnInit();
    };
    // 初始化
    function fnInit() {
        vm = new Vue({
            el: '.vueApp',
            data: {}
        });
    }

    function funSubmit() {
        api.execScript({
            name: pageParam.winName,
            frameName: pageParam.frameName,
            script: "submitFrmCallback()"
        });
        fnDelayCloseFrame();
    }
</script>

</html>